Java Database Programming with JDBC Java Database Programming with JDBC
by Pratik Patel
Coriolis, The Coriolis Group
ISBN: 1576100561   Pub Date: 10/01/96
  

Previous Table of Contents Next


Table 5.8 ResultSetMetaData ODBC calls.
JDBC Interface Method ODBC Call Comments
getColumnCount SQLNumResultCols Returns the number of columns in a ResultSet
isAutoIncrement SQLColAttributes fDescType = SQL_COLUMN_AUTO_INCREMENT
isCaseSensitive SQLColAttributes fDescType = SQL_COLUMN_CASE_SENSITIVE
isSearchable SQLColAttributes fDescType = SQL_COLUMN_SEARCHABLE
isCurrency SQLColAttributes fDescType = SQL_COLUMN_MONEY
isNullable SQLColAttributes fDescType = SQL_COLUMN_NULLABLE
isSigned SQLColAttributes fDescType = SQL_COLUMN_UNSIGNED
getColumnDisplaySize SQLColAttributes fDescType = SQL_COLUMN_DISPLAY_SIZE
getColumnLabel SQLColAttributes fDescType = SQL_COLUMN_LABEL
getColumnName SQLColAttributes fDescType = SQL_COLUMN_NAME
getSchemaName SQLColAttributes fDescType = SQL_COLUMN_OWNER_NAME
getPrecision SQLColAttributes fDescType = SQL_COLUMN_PRECISION
getScale SQLColAttributes fDescType = SQL_COLUMN_SCALE
getTableName SQLColAttributes fDescType = SQL_COLUMN_TABLE_NAME
getCatalogName SQLColAttributes fDescType = SQL_COLUMN_QUALIFIER_NAME
getColumnType SQLColAttributes fDescType = SQL_COLUMN_TYPE; the SQL type must be converted to the appropriate JDBC type
getColumnTypeName SQLColAttributes fDescType = SQL_COLUMN_TYPE_NAME
isReadOnly SQLColAttributes fDescType = SQL_COLUMN_UPDATABLE; the value returned must be SQL_ATTR_READONLY
isWritable SQLColAttributes fDescType = SQL_COLUMN_UPDATABLE; the value returned must be SQL_ATTR_READWRITE_UNKNOWN
isDefinitelyWritable SQLColAttributes fDescType = SQL_COLUMN_UPDATABLE; the value returned must be SQL_ATTR_WRITE


Previous Table of Contents Next